package com.diy.sigmund.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ylm-sigmund
 * @since 2023/4/24 16:09
 */
@RestController
public class HelloControOneller {

    @GetMapping("/echo/{str}")
    public String echo(@PathVariable String str) {
        return str;
    }

    @GetMapping("/cpu")
    public void cpu() {
        int a = 1;
        while (true) {
            a = 3;
        }
    }
}
